package com.burstly.lib.component.networkcomponent.burstly.html.mraid;

import java.util.HashMap;

class WindowEvent extends MraidEvent
{
  static final int EVENT_ID = 5;
  private static final String VIEWABLE = "viewable";

  private void onAttach(MraidView paramMraidView)
  {
    paramMraidView.publishBridgeLoaded();
    paramMraidView.startPositionNotification();
    if (paramMraidView.mPageLoaded)
    {
      HashMap localHashMap = new HashMap();
      if (paramMraidView.isShown())
        paramMraidView.addViewableValue(localHashMap);
      paramMraidView.addCurrentPositionValue(localHashMap);
      paramMraidView.fireComplexChangeEvent(localHashMap);
    }
  }

  private void onDeattach(MraidView paramMraidView)
  {
    paramMraidView.stopPositionNotification();
    paramMraidView.fireSimpleChangeEvent("viewable", Boolean.valueOf(false));
  }

  void fireEvent(MraidView paramMraidView, Object[] paramArrayOfObject)
  {
    if (!checkArgs(paramArrayOfObject))
      return;
    if (((Boolean)paramArrayOfObject[0]).booleanValue())
    {
      onAttach(paramMraidView);
      return;
    }
    onDeattach(paramMraidView);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.mraid.WindowEvent
 * JD-Core Version:    0.6.2
 */